Tables [dbo].[AddressPurposeContactType]
Properties
PropertyValue
Row Count4
Created10:31:13 AM Tuesday, March 02, 2010
Last Modified11:40:00 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_AddressPurposeContactType: AddressPurposeContactTypeKeyAddressPurposeContactTypeKeyuniqueidentifier16
No
Foreign Keys FK_AddressPurposeContactType_AddressPurposeRef: [dbo].[AddressPurposeRef].AddressPurposeKeyIndexes AK_AddressPurposeContactType: AddressPurposeKey\ContactTypeKeyAddressPurposeKeyuniqueidentifier16
No
Foreign Keys FK_AddressPurposeContactType_ContactTypeRef: [dbo].[ContactTypeRef].ContactTypeKeyIndexes AK_AddressPurposeContactType: AddressPurposeKey\ContactTypeKeyContactTypeKeyuniqueidentifier16
No
IsSingleUsebit1
No
DisplayOrdersmallint2
No
IsAddressRequiredbit1
No
IsPhoneRequiredbit1
No
IsFaxRequiredbit1
No
IsEmailRequiredbit1
No
AlwaysDisplayFlagbit1
No
((0))
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AddressPurposeContactType: AddressPurposeContactTypeKeyPK_AddressPurposeContactTypeAddressPurposeContactTypeKey
Yes
AK_AddressPurposeContactTypeAddressPurposeKey, ContactTypeKey
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AddressPurposeContactType_AddressPurposeRefAddressPurposeKey->[dbo].[AddressPurposeRef].[AddressPurposeKey]
FK_AddressPurposeContactType_ContactTypeRefContactTypeKey->[dbo].[ContactTypeRef].[ContactTypeKey]
SQL Script
CREATE TABLE [dbo].[AddressPurposeContactType]
(
[AddressPurposeContactTypeKey] [uniqueidentifier] NOT NULL,
[AddressPurposeKey] [uniqueidentifier] NOT NULL,
[ContactTypeKey] [uniqueidentifier] NOT NULL,
[IsSingleUse] [bit] NOT NULL,
[DisplayOrder] [smallint] NOT NULL,
[IsAddressRequired] [bit] NOT NULL,
[IsPhoneRequired] [bit] NOT NULL,
[IsFaxRequired] [bit] NOT NULL,
[IsEmailRequired] [bit] NOT NULL,
[AlwaysDisplayFlag] [bit] NOT NULL CONSTRAINT [DF_AddressPurposeContactType_AlwaysDisplayFlag] DEFAULT ((0)),
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[AddressPurposeContactType] ADD CONSTRAINT [PK_AddressPurposeContactType] PRIMARY KEY CLUSTERED ([AddressPurposeContactTypeKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AddressPurposeContactType] ADD CONSTRAINT [AK_AddressPurposeContactType] UNIQUE NONCLUSTERED ([AddressPurposeKey], [ContactTypeKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AddressPurposeContactType] ADD CONSTRAINT [FK_AddressPurposeContactType_AddressPurposeRef] FOREIGN KEY ([AddressPurposeKey]) REFERENCES [dbo].[AddressPurposeRef] ([AddressPurposeKey])
GO
ALTER TABLE [dbo].[AddressPurposeContactType] ADD CONSTRAINT [FK_AddressPurposeContactType_ContactTypeRef] FOREIGN KEY ([ContactTypeKey]) REFERENCES [dbo].[ContactTypeRef] ([ContactTypeKey])
GO
Uses